package com.mallcloud.mall.common.core.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 流程状态
 */
@Getter
@AllArgsConstructor
public enum ProcessStatusEnum {

	ACTIVE("active", "激活"),
	SUSPEND("suspend", "暂停"),
	;

	private String status;
	private String description;

	public static String getDecs(String status) {
		return Arrays.stream(values()).filter(x -> x.getStatus().equals(status)).findFirst().get().getDescription();
	}

}
